import { createApp } from 'vue'
//import './style.css'
import App from './App.vue'
//引入plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 导入 axios
import axios from 'axios'
//引入 路由
import { router } from './router';
const app= createApp(App)
//将axios进行全局设置
    app.config.globalProperties.$axios = axios
// 是否在启动时生成生产提示
   // app.config.productionTip = false
// 指定 axios 的全局配置，指定为后端服务器地址
    axios.defaults.baseURL = 'http://localhost:8080/'
    app.use(ElementPlus)
    app.use(router)
    app.mount('#app')
